package com.rds.common.mail;

import java.util.List;

/**
 * @author weny.yang
 * @ClassName: EmailBean
 * @Description:邮件实体
 * @date  2022年05月27日
 */
public class EmailBean {

    private String smtpHost;// 发件人邮箱的 SMTP 服务器地址
    private EmailUser fromUser;// 发件人
    private List<EmailUser> recipientType_TO;//(必填) 收件人，可以配置多个
    private List<EmailUser> recipientType_CC;//(可选) 抄送人，可以配置多个
    private List<EmailUser> recipientType_BCC;//(可选) 密送人，可以配置多个,其他人无法知道密送人收到邮件
    private String emailTitle;// 邮件主题
    private String emailContent;// 邮件内容
    private List<String> annexPaths;// 附件路径


    public EmailBean() {

    }

    public EmailBean(String smtpHost, EmailUser fromUser, List<EmailUser> recipientType_TO, List<EmailUser> recipientType_CC,
                     List<EmailUser> recipientType_BCC, String emailTitle, String emailContent, List<String> annexPaths) {
        this.smtpHost = smtpHost;
        this.fromUser = fromUser;
        this.recipientType_TO = recipientType_TO;
        this.recipientType_CC = recipientType_CC;
        this.recipientType_BCC = recipientType_BCC;
        this.emailTitle = emailTitle;
        this.emailContent = emailContent;
        this.annexPaths = annexPaths;
    }

    public String getSmtpHost() {
        return smtpHost;
    }

    public void setSmtpHost(String smtpHost) {
        this.smtpHost = smtpHost;
    }

    public EmailUser getFromUser() {
        return fromUser;
    }

    public void setFromUser(EmailUser fromUser) {
        this.fromUser = fromUser;
    }

    public List<EmailUser> getRecipientType_TO() {
        return recipientType_TO;
    }

    public void setRecipientType_TO(List<EmailUser> recipientType_TO) {
        this.recipientType_TO = recipientType_TO;
    }

    public List<EmailUser> getRecipientType_CC() {
        return recipientType_CC;
    }

    public void setRecipientType_CC(List<EmailUser> recipientType_CC) {
        this.recipientType_CC = recipientType_CC;
    }

    public List<EmailUser> getRecipientType_BCC() {
        return recipientType_BCC;
    }

    public void setRecipientType_BCC(List<EmailUser> recipientType_BCC) {
        this.recipientType_BCC = recipientType_BCC;
    }

    public String getEmailTitle() {
        return emailTitle;
    }

    public void setEmailTitle(String emailTitle) {
        this.emailTitle = emailTitle;
    }

    public String getEmailContent() {
        return emailContent;
    }

    public void setEmailContent(String emailContent) {
        this.emailContent = emailContent;
    }

    public List<String> getAnnexPaths() {
        return annexPaths;
    }

    public void setAnnexPaths(List<String> annexPaths) {
        this.annexPaths = annexPaths;
    }


    public String toString() {
        return "{smtpHost=" + smtpHost + ",fromUser=" + fromUser + ",recipientType_TO=" + recipientType_TO
                + ",recipientType_CC=" + recipientType_CC + ",recipientType_BCC=" + recipientType_BCC + ",emailTitle="
                + emailTitle + ",emailContent=" + emailContent + ",annexPaths = " + annexPaths + "}";
    }
}
